﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace VB.Entries.SQLManager
{
    public static class SqlManager
    {
        private static String connectionString;

        public static void Initialize(String connectionString)
        {
            SqlManager.connectionString = connectionString;
        }

        public static ConnectionContext GetConnectionContext()
        {
            return new ConnectionContext(new SqlConnection(connectionString));
        }

        public static TransactionContext GetTransactionContext()
        {
            return new TransactionContext(new SqlConnection(connectionString));
        }
    }
}
